<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>监管对象库</title>
    <script src="../../../js/header.js"></script>
    <style>
        html,body,body>div{
            overflow: hidden;
        }
        #firstpage{
            margin: 0;
            padding: 0;
        }
        .tab-title{
            font-size: 16px;
            font-weight: bold;
            border-left: 4px solid #0D9AFF;
            font-family: PingFangSC-Medium;
            padding-left:10px;
            margin-bottom: 20px;
        }
        .el-input__inner {
            -webkit-appearance: none;
            background-color: #FFF;
            background-image: none;
            border-radius: 4px;
            border: 1px solid #DCDFE6;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            color: #606266;
            display: inline-block;
            font-size: inherit;
            height: 30px;
            line-height: 30px;
            outline: 0;
            padding: 0 15px;
            -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
            transition: border-color .2s cubic-bezier(.645,.045,.355,1);
        }
        .zcform .tab{
            border: 1px solid #DCDFE6;
        }
        .zcform .el-input__inner {
            -webkit-appearance: none;
            background-color: #FFF;
            background-image: none;
            border: 1px solid #DCDFE6;
            border-radius: 0px;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            color: #606266;
            display: inline-block;
            font-size: inherit;
            height: 30px;
            line-height: 30px;
            outline: 0;
            -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
            transition: border-color .2s cubic-bezier(.645,.045,.355,1);
            width: 100%;
        }
        .zcform .linkMan .el-input .el-input__inner{

            height: 60px;
        }
        .zcform .el-textarea__inner {
            display: block;
            resize: vertical;
            padding: 5px 15px;
            line-height: 1.5;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            width: 100%;
            height: 120px;
            font-size: inherit;
            color: #606266;
            background-color: #FFF;
            background-image: none;
            border: 1px solid #DCDFE6;
            border-radius: 0px;
            -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
            transition: border-color .2s cubic-bezier(.645,.045,.355,1);
        }
        .zcform .el-input .el-input__clear {
            line-height: 30px;
        }
        .zcform .el-input__icon {
            line-height: 30px;
        }
        .zcform .el-form-item {
            margin-bottom: 0px;
        }
        .zcform .el-form-item__content {
            line-height: 30px;
            position: relative;
            font-size: 14px;

        }
        .zcform .el-form-item__error {
            color: #F56C6C;
            font-size: 12px;
            line-height: 1;
            padding-top: 4px;
            position: absolute;
            top: 0px;
            left: 114px;
            z-index: 99;
            width: 400px;
            text-align: left;
        }
        .zcform .red{
            color: #F56C6C;
        }
        .zccheck .el-form-item__content{
            line-height: 40px;
        }
    </style>
</head>
<body>
<div id="firstpage" style="overflow: hidden;">
    <el-row type="flex" justify="center" style="margin-top: 25px;">
        <el-col :span="15">
            <el-row :gutter="20">
                <el-col >
                    <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 20px;">
                        <el-breadcrumb-item :to="{ path: '/' }"  @click.native="gobackmain()">首页</el-breadcrumb-item>
                        <el-breadcrumb-item :to="{ path: '/' }"  @click.native="gobackzixun">监管对象库</el-breadcrumb-item>
                    </el-breadcrumb>
                    <div class="search-tab">
                        <el-tabs v-model="Title" >
                            <el-form :model="selectForm" :rules="rules" ref="selectForm" label-width="150px">
                                <el-row>
                                    <el-col :span="8">
                                        <el-form-item label="单位名称:" prop="" label-width="110px">
                                            <el-input v-model="selectForm.unitName" placeholder="" stype=""></el-input>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="8">
                                        <el-form-item label="统一社会信用代码:" label-width="140px">
                                            <el-row>
                                                <el-form-item prop="">
                                                    <el-input v-model="selectForm.uniscid" placeholder="" ></el-input>
                                                </el-form-item>
                                            </el-row>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <div style="float: right;">
                                        <el-button type="primary" size="small" style="width: 60px;height: 30px;" @click="searchForm('selectForm')">查询</el-button>
                                        <el-button type="warning" size="small" style="width: 60px;height: 30px;" @click="resetForm('selectForm')">重置</el-button>
                                    </div>
                                </el-row>
                            </el-form>
                            <el-table :data="tableData" @selection-change="handleSelectionChange" max-height="500"  border style="width: 100%; margin-top: 10px;" :header-cell-style="{background:'#eef1f6',color:'#606266'}">
                                <el-table-column type="selection" ></el-table-column>
                                <el-table-column
                                        type="index"
                                        label="序号"
                                        width="50"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                    prop="unitName"
                                    label="单位名称"
                                    width="250"
                                    align="center" >
                                 </el-table-column>
                                <el-table-column
                                        prop="uniscid"
                                        label="统一社会信用代码"
                                        width="200"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="unitRegistTime"
                                        label="注册时间"
                                        width="200"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="legalMan"
                                        label="企业法人"
                                        width="150"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        label="操作"
                                        width=""
                                        align="center">
                                    <template slot-scope="scope">
                                        <el-button type="" size="mini" @click="view(scope.$index,scope.row)">查看</el-button>
                                    </template>
                                </el-table-column>
                            </el-table>
                            <div style="overflow: hidden;" justify="center">
                                <div class="pagination">
                                    <el-pagination
                                            @size-change="handleSizeChange"
                                            @current-change="handleCurrentChange"
                                            :current-page="currentPage"
                                            :page-sizes="[10, 20, 30, 40]"
                                            :page-size="pagesize"
                                            background
                                            layout="total, sizes,prev, pager, next"
                                            :total="tableTotal"
                                            prev-text="上一页"
                                            next-text="下一页">
                                    </el-pagination>
                                </div>
                            </div>
                            <el-button type="primary" size="mini" @click="appovalExByIds()" style="margin-left: 20px;float: right;">导出</el-button>
                            <el-button type="primary" size="mini" @click="appovalEx()" style="float: right;">批量导出</el-button>


                            <el-dialog title="" :visible.sync="dialogForm" center fullscreen>
                                <el-row type="flex" justify="center" style="margin-top: 15px;">
                                    <el-col :span="15">
                                        <div style="margin-top: 10px;"　class="zcform">
                                            <el-form :model="apUnitEntity" :rules="rules" ref="apUnitEntity"  style="width:80%;font-size: 14px;border: 1px solid #DCDFE6;margin: 10px auto;">
                                                <!--第一行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">单位名称</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="unitName">
                                                            <el-input v-model="apUnitEntity.unitName" style="" placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第二行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">单位性质</span>
                                                    </el-col>
                                                    <el-col :span="4"  style="width: 75%;">
                                                        <el-form-item prop="">
                                                            <el-select  v-model="apUnitEntity.syUnitType" placeholder="请选择" ref="syUnitType" disabled  @change="syChangeValue" style="width: 50%;">
                                                                <el-option label="事业" value="事业"></el-option>
                                                                <el-option label="企业" value="企业"></el-option>
                                                            </el-select>

                                                            <el-select  v-model="apUnitEntity.qyUnitType" placeholder="请选择" ref="qyUnitType" disabled @change="qyChangeValue" style="width: 50%;margin: -4.2px;">
                                                                <el-option
                                                                        v-for="item in apUnitlist"
                                                                        :key="item.code"
                                                                        :label="item.name"
                                                                        :value="item.name"
                                                                >
                                                                </el-option>
                                                            </el-select>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第三行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">注册地址</span>
                                                    </el-col>
                                                    <el-col :span="10" style="width: 45%;">
                                                        <el-col :span="5">
                                                            <el-form-item prop="provinceValue" >
                                                                <el-select v-model="apUnitEntity.provinceValue" :title="provinceValue" placeholder="选择省" @change="chooseProvince" disabled>
                                                                    <el-option
                                                                            v-for="item in provinceData"
                                                                            :key="item.code"
                                                                            :label="item.name"
                                                                            :value="item.name"
                                                                    >
                                                                    </el-option>
                                                                </el-select>
                                                            </el-form-item>
                                                        </el-col>
                                                        <el-col :span="5">
                                                            <el-form-item prop="cityValue" >
                                                                <el-select v-model="apUnitEntity.cityValue" :title="cityValue" placeholder="选择市" @change="chooseCity" disabled>
                                                                    <el-option
                                                                            v-for="item in cityData"
                                                                            :key="item.code"
                                                                            :label="item.name"
                                                                            :value="item.name"
                                                                    >
                                                                    </el-option>
                                                                </el-select>
                                                            </el-form-item>
                                                        </el-col>
                                                        <el-col :span="5">
                                                            <el-form-item prop="areaValue" >
                                                                <el-select v-model="apUnitEntity.areaValue" :title="areaValue" @change="chooseArea" placeholder="选择区、县" disabled>
                                                                    <el-option
                                                                            v-for="item in areaData"
                                                                            :key="item.code"
                                                                            :label="item.name"
                                                                            :value="item.name"
                                                                            style="width: 170px;">
                                                                    </el-option>
                                                                </el-select>
                                                            </el-form-item>
                                                        </el-col>
                                                        <el-col :span="9">
                                                            <el-form-item>
                                                                <el-input v-model="apUnitEntity.detailAddress" placeholder="填写详细地址" disabled></el-input>
                                                            </el-form-item>
                                                        </el-col>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">邮编</span>
                                                    </el-col>
                                                    <el-col :span="4" style="width: 20%;">
                                                        <el-form-item prop="registAddrCode">
                                                            <el-input v-model="apUnitEntity.registAddrCode"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第四行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">办公地址</span>
                                                    </el-col>
                                                    <el-col :span="10" style="width: 45%">
                                                        <el-form-item prop="bgAddr">
                                                            <el-input v-model="apUnitEntity.bgAddr"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">邮编</span>
                                                    </el-col>
                                                    <el-col :span="4" style="width: 20%;">
                                                        <el-form-item prop="bgAddrCode" >
                                                            <el-input v-model="apUnitEntity.bgAddrCode"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第五行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">法定代表人</span>
                                                    </el-col>
                                                    <el-col :span="10" style="width: 45%;">
                                                        <el-form-item prop="legalMan">
                                                            <el-input v-model="apUnitEntity.legalMan"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">电话</span>
                                                    </el-col>
                                                    <el-col :span="4" style="width:20%">
                                                        <el-form-item prop="legalManTel">
                                                            <el-input v-model="apUnitEntity.legalManTel"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第六行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 60px;line-height: 60px;">
                                                        <span class="red">*</span>
                                                        <span class="">联系人</span>
                                                    </el-col>
                                                    <el-col :span="2" class="linkMan" style="width: 15%;text-align: center;">
                                                        <el-form-item prop="linkMan">
                                                            <el-input v-model="apUnitEntity.linkMan" style="height: 60px;" placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 60px;line-height: 60px;">
                                                        <span class="red">*</span>
                                                        <span class="">联系电话</span>
                                                    </el-col>

                                                    <el-col :span="4"  style="width: 35%;text-align: center;height: 28px;line-height: 28px;">
                                                        <el-row >
                                                            <el-col :span="2" class="tab" style="width: 30%;text-align: center;height: 30px;line-height: 30px;">
                                                                <span class="red">*</span>
                                                                <span class="">手机</span>
                                                            </el-col>
                                                            <el-col :span="4" style="width: 70%;">
                                                                <el-form-item prop="linkTel">
                                                                    <el-input v-model="apUnitEntity.linkTel"  placeholder="" disabled></el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2" class="tab" style="width: 30%;text-align: center;height: 30px;line-height: 30px;">
                                                                <span class="red">*</span>
                                                                <span class="">办公室</span>
                                                            </el-col>
                                                            <el-col :span="4" style="width: 70%;">
                                                                <el-form-item prop="linkOffice">
                                                                    <el-input v-model="apUnitEntity.linkOffice"  placeholder="" disabled></el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                    </el-col>

                                                    <el-col :span="4"  style="width: 30%;text-align: center;height: 28px;line-height: 28px;">
                                                        <el-row >
                                                            <el-col :span="2" class="tab" style="width: 33.5%;text-align: center;height: 30px;line-height: 30px;">
                                                                <span class="red"></span>
                                                                <span class="">传真</span>
                                                            </el-col>
                                                            <el-col :span="4" style="width: 66.5%;">
                                                                <el-form-item prop="linkFax" >
                                                                    <el-input v-model="apUnitEntity.linkFax"  placeholder="" disabled></el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2" class="tab" style="width: 33.5%;text-align: center;height: 30px;line-height: 30px;">
                                                                <span class="red">*</span>
                                                                <span class="">电子邮箱</span>
                                                            </el-col>
                                                            <el-col :span="4" style="width: 66.5%;">
                                                                <el-form-item prop="linkEmail" >
                                                                    <el-input v-model="apUnitEntity.linkEmail"  placeholder="" disabled></el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                    </el-col>
                                                </el-row>
                                                <!--第七行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red"></span>
                                                        <span class="">上级主管单位</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="upMainUnit">
                                                            <el-input v-model="apUnitEntity.upMainUnit"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第八行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">单位成立时间</span>
                                                    </el-col>
                                                    <el-col :span="10" style="width: 25%;">
                                                        <el-form-item prop="establishTime">
                                                            <el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.establishTime" style="width: 100%;" disabled/>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">单位注册时间</span>
                                                    </el-col>
                                                    <el-col :span="4" style="width: 25%;">
                                                        <el-form-item prop="unitRegistTime">
                                                            <el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.unitRegistTime" disabled style="width: 100%;"/>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第九行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">统一社会信用代码</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="uniscid">
                                                            <el-input v-model="apUnitEntity.uniscid"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">用户名</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="userName">
                                                            <el-input v-model="apUnitEntity.userName"  placeholder="" autoComplete="off" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">密码</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="password">
                                                            <el-input v-model="apUnitEntity.password"  placeholder="" show-password auto-complete="new-password" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十一行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">注册（开办）资金（万元）</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="registMoney">
                                                            <el-input v-model="apUnitEntity.registMoney"  placeholder="" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十二行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="">专业技术人员</span>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="">60周岁以下</span>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="">60周岁以上</span>
                                                    </el-col>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="">合计</span>
                                                    </el-col>
                                                </el-row>
                                                <!--第十三行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">高级职称</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="highDownsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.highDownsixty" :min="0" placeholder="" @change="sum" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="highUpsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.highUpsixty" :min="0" placeholder="" @change="sum" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="highSum">
                                                            <el-input type="number" v-model.number="apUnitEntity.highSum" :min="0" placeholder="" :disabled="true" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十四行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">中级职称</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="midDownsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.midDownsixty" :min="0" placeholder="" @change="sum" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="midUpsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.midUpsixty" :min="0" placeholder="" @change="sum" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="midSum">
                                                            <el-input type="number" v-model.number="apUnitEntity.midSum" :min="0" placeholder="" :disabled="true"></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十五行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">初级职称</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="priDomnsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.priDomnsixty" :min="0" placeholder="" @change="sum" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="priUpsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.priUpsixty" :min="0" placeholder="" @change="sum" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="priSum">
                                                            <el-input type="number" v-model.number="apUnitEntity.priSum" :min="0" placeholder="" :disabled="true" disabled></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十六行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <span class="red">*</span>
                                                        <span class="">合计</span>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="sumDownsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.sumDownsixty" :min="0" placeholder="" :disabled="true"></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="sumUpsixty">
                                                            <el-input type="number" v-model.number="apUnitEntity.sumUpsixty" :min="0" placeholder="" :disabled="true"></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 25%;">
                                                        <el-form-item prop="sum">
                                                            <el-input type="number" v-model.number="apUnitEntity.sum" :min="0" placeholder="" :disabled="true"></el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十七行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 390px;">
                                                        <div style="margin-top: 190px;">
                                                            <span class="">具有承担地震安全性评价相关专业背景的高级职称专业技术人员情况</span>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="2"  style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
                                                        <el-row >
                                                            <el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 30px;line-height: 30px;">
                                                                <span class="">专业</span>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
                                                                <span class="">地震学</span>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
                                                                <span class="">地震地质学</span>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
                                                                <span class="">地震工程学</span>
                                                            </el-col>
                                                        </el-row>
                                                    </el-col>
                                                    <el-col :span="2"  style="width: 50%;text-align: center;height: 30px;line-height: 30px;">
                                                        <el-row >
                                                            <el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 30px;line-height: 30px;">
                                                                <span class="">高级职称人员姓名</span>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2"  style="width: 100%;text-align: center;height: 120px;">
                                                                <el-form-item prop="dzxHigh">
                                                                    <el-input
                                                                            type="textarea"
                                                                            resize="none"
                                                                            placeholder=""
                                                                            disabled
                                                                            v-model="apUnitEntity.dzxHigh">
                                                                    </el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2"  style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
                                                                <el-form-item prop="dzdzxHigh">
                                                                    <el-input
                                                                            type="textarea"
                                                                            resize="none"
                                                                            placeholder=""
                                                                            disabled
                                                                            v-model="apUnitEntity.dzdzxHigh">
                                                                    </el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                        <el-row>
                                                            <el-col :span="2"  style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
                                                                <el-form-item prop="dzgcxHigh">
                                                                    <el-input
                                                                            type="textarea"
                                                                            resize="none"
                                                                            placeholder=""
                                                                            disabled
                                                                            v-model="apUnitEntity.dzgcxHigh">
                                                                    </el-input>
                                                                </el-form-item>
                                                            </el-col>
                                                        </el-row>
                                                    </el-col>
                                                </el-row>
                                                <!--第十八行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
                                                        <div style="margin-top: 50px;">
                                                            <span class="red" >*</span>
                                                            <span class="">开展地震安全性评价工作业绩情况</span>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="apYjqk">
                                                            <el-input
                                                                    type="textarea"
                                                                    resize="none"
                                                                    placeholder=""
                                                                    disabled
                                                                    v-model="apUnitEntity.apYjqk">
                                                            </el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第十九行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
                                                        <div style="margin-top: 40px;">
                                                            <span class="red">*</span>
                                                            <span class="">具有承担地震安全性评价工作技术能力情况</span>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="apJsnlqk">
                                                            <el-input
                                                                    type="textarea"
                                                                    resize="none"
                                                                    placeholder=""
                                                                    disabled
                                                                    v-model="apUnitEntity.apJsnlqk">
                                                            </el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                                <!--第二十行-->
                                                <el-row>
                                                    <el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
                                                        <div style="margin-top: 50px;">
                                                            <span class="red">*</span>
                                                            <span class="">质量管理体系情况</span>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" style="width: 75%;">
                                                        <el-form-item prop="zlglTxqk">
                                                            <el-input
                                                                    type="textarea"
                                                                    resize="none"
                                                                    placeholder=""
                                                                    disabled
                                                                    v-model="apUnitEntity.zlglTxqk"
                                                                    >
                                                            </el-input>
                                                        </el-form-item>
                                                    </el-col>
                                                </el-row>
                                            </el-form>
                                            <el-row>
                                                <el-col :span="24" style="text-align: right; margin-top: 30px;">
                                                    <el-button type="info" size="small" style="width: 60px;height: 30px;" @click="dialogForm = false;">关闭</el-button>
                                                </el-col>
                                            </el-row>
                                        </div>
                                    </el-col>
                                </el-row>
                            </el-dialog>
                        </el-tabs>
                    </div>
                </el-col>
            </el-row>
        </el-col>
    </el-row>
</div>
</body>
<script>
    var firstpage = new Vue({
        el: '#firstpage',
        data() {
            return {
                dialogForm: false,
                currentPage: 1, //默认显示页面为1
                pagesize: 10, // 每页的数据条数
                tableTotal:'',
                apUnitEntity : {
                    unitName:'',
                    syUnitType: '',
                    qyUnitType:'',
                    registAddr:'',
                    registAddrCode:'',
                    bgAddr:'',
                    bgAddrCode:'',
                    legalMan:'',
                    legalManTel:'',
                    linkMan:'',
                    linkTel:'',
                    linkOffice:'',
                    linkFax:'',
                    linkEmail:'',
                    upMainUnit:'',
                    establishTime:'',
                    unitRegistTime:'',
                    uniscid:'',
                    password:'',
                    registMoney:'',
                    highDownsixty:'',
                    highUpsixty:'',
                    highSum:'',
                    midDownsixty:'',
                    midUpsixty:'',
                    midSum:'',
                    priDomnsixty:'',
                    priUpsixty:'',
                    priSum:'',
                    sumDownsixty:'',
                    sumUpsixty:'',
                    sum:'',
                    dzxHigh:'',
                    dzdzxHigh:'',
                    dzgcxHigh:'',
                    apYjqk:'',
                    apJsnlqk:'',
                    zlglTxqk:'',
                    // 审定
                    spPerson: '',
                    spReview: '',
                    checkResult: '',
                    spOrg: '',
                    spStatus: '',
                    userName:'',
                    provinceValue:'',
                    cityValue:'',
                    areaValue:'',
                    detailAddress: ''
                },
                selectForm: {
                    unitName: '',
                    uniscid: '',
                    spPerson: '',
                    spStatus: '',
                    sbStatus: '',
                    startTime: '',
                    endTime: ''
                },
                formDisabled: false,
                currentRow: null,
                tableData: [],
                exportList : []
            }
        },
        created(){

        },
        mounted(){
            this.getData();
        },
        methods: {
            getData() {
                var pagesize = this.pagesize;
                var pageno = this.currentPage;
                axios({
                    method: 'get',
                    url: '/dzjportal/apUnitInfo/getApUnitInfo',
                    params: {
                        pageSize: pagesize,
                        pageNo: pageno,
                        unitName : this.selectForm.unitName,
                        uniscid : this.selectForm.uniscid
                    }
                })
                    .then(response => {
                        let data = response.data;
                        if (data.code == 200) {
                            let dataInformation = data.data.results;
                            this.tableTotal = data.data.total;// 数据长度

                            this.tableData = dataInformation;

                        } else {
                            this.$message.error(data.msg);
                        }
                    })
                    .catch(function (error) {
                        console.log(error);
                    });
            },
            /* 列表页搜索 */
            searchForm(selectForm) {
                var pagesize = this.pagesize;
                var pageno = 1;

                axios({
                    method: 'get',
                    url: '/dzjportal/apUnitInfo/getApUnitInfo',
                    params: {
                        pageSize: pagesize,
                        pageNo: pageno,
                        unitName : this.selectForm.unitName,
                        uniscid : this.selectForm.uniscid
                    }
                })
                    .then(response => {
                        let data = response.data;
                        if (data.code == 200) {
                            let dataInformation = data.data.results;
                            this.tableTotal = data.data.total;// 数据长度

                            this.tableData = dataInformation;

                        } else {
                            this.$message.error(data.msg);
                        }
                    })
                    .catch(function (error) {
                        console.log(error);
                    });
            },
            /* 列表页重置 */
            resetForm(formName) {
                this.selectForm.unitName = '';
                this.selectForm.uniscid = '';
                this.selectForm.spPerson = '';
                this.selectForm.spStatus = '';
                this.selectForm.sbStatus = '';
                this.selectForm.startTime = '';
                this.selectForm.endTime = '';
                this.getData();
            },
            // 查看
            view(index,row){
                this.dialogForm = true;
                this.apUnitEntity = row;
                var arr = row.registAddr.split("-");
                this.apUnitEntity.provinceValue = arr[0];
                this.apUnitEntity.cityValue = arr[1];
                this.apUnitEntity.areaValue = arr[2];
                this.apUnitEntity.detailAddress = arr[3];
                // this.showInformation(index,row);
                this.checkDisabled(true);
            },
            gobackmain(){
                parent.mainwork.backIndex();
            },
            // 清空表单
            clearFromInformation(){
                this.apUnitEntity.unitName ='';
                this.apUnitEntity.syUnitType ='';
                this.apUnitEntity.qyUnitType ='';
                this.apUnitEntity.registAddr ='';
                this.apUnitEntity.registAddrCode ='';
                this.apUnitEntity.bgAddr ='';
                this.apUnitEntity.bgAddrCode ='';
                this.apUnitEntity.legalMan ='';
                this.apUnitEntity.legalManTel ='';
                this.apUnitEntity.linkMan ='';
                this.apUnitEntity.linkTel ='';
                this.apUnitEntity.linkOffice ='';
                this.apUnitEntity.linkFax ='';
                this.apUnitEntity.linkEmail ='';
                this.apUnitEntity.upMainUnit ='';
                this.apUnitEntity.establishTime ='';
                this.apUnitEntity.unitRegistTime ='';
                this.apUnitEntity.uniscid ='';
                this.apUnitEntity.password ='';
                this.apUnitEntity.registMoney ='';
                this.apUnitEntity.highDownsixty =0;
                this.apUnitEntity.highUpsixty =0;
                this.apUnitEntity.highSum =0;
                this.apUnitEntity.midDownsixty =0;
                this.apUnitEntity.midUpsixty =0;
                this.apUnitEntity.midSum =0;
                this.apUnitEntity.priDomnsixty =0;
                this.apUnitEntity.priUpsixty =0;
                this.apUnitEntity.priSum =0;
                this.apUnitEntity.sumDownsixty =0;
                this.apUnitEntity.sumUpsixty =0;
                this.apUnitEntity.sum =0;
                this.apUnitEntity.dzxHigh ='';
                this.apUnitEntity.dzdzxHigh ='';
                this.apUnitEntity.dzgcxHigh ='';
                this.apUnitEntity.apYjqk ='';
                this.apUnitEntity.apJsnlqk ='';
                this.apUnitEntity.zlglTxqk ='';
                this.apUnitEntity.userName ='';
                // 审定
                this.apUnitEntity.spPerson = '';
                this.apUnitEntity.spReview = '';
                this.apUnitEntity.spOrg = '';
                this.apUnitEntity.spStatus = '';

                this.apUnitEntity.provinceValue ='';
                this.apUnitEntity.cityValue ='';
                this.apUnitEntity.areaValue ='';
                this.apUnitEntity.detailAddress = '';
            },
            // 设置允许填写和不允许填写
            checkDisabled(n) {
                if (n) {
                    this.formDisabled = true;
                } else {
                    this.formDisabled = false;
                }
            },
            /* 单选搜索表单 */
            selectCurrentChange(val){
                this.currentRow = val;
            },
            //每页下拉显示数据
            handleSizeChange(size) {
                this.pagesize = size;
                this.getData();
            },
            //点击第几页
            handleCurrentChange(currentPage) {
                this.currentPage = currentPage;
                this.getData();
            },
            // 公共方法--查看
            showInformation(index,row){
                axios({
                    method: 'post',
                    url: '/dzjportal/evalunit/findbyid/'+row.id,
                })
                    .then(response => {
                        let data = response.data;
                        if (data.code == 200) {
                            let rowdata = data.apUnitEntity;
                            this.clearForm(); // 重置
                            rowdata.spPerson = this.userInfo.loginName;
                            rowdata.spOrg=this.userInfo.orgName;
                            this.apUnitEntity = rowdata;
                            var arr = rowdata.registAddr.split("-");
                            this.apUnitEntity.provinceValue = arr[0];
                            this.apUnitEntity.cityValue = arr[1];
                            this.apUnitEntity.areaValue = arr[2];
                            this.apUnitEntity.detailAddress = arr[3];
                        } else {
                            this.$message.error(data.msg);
                        }
                    })
                    .catch(function (error) {
                        console.log(error);
                    });
            },
            //批量导出
            appovalEx(){
                this.$confirm('确定要批量导出吗?', '提示', {
                    cancelButtonText: '取消',
                    confirmButtonText: '确定',
                    type: 'warning'
                }).then(() => {
                    window.location.href="/dzjportal/apUnitInfo/export?unitName="+this.selectForm.unitName+"&uniscid="
                        +this.selectForm.uniscid;
                }).catch(() => {
                    this.$message({
                        type: 'info',
                        message: '取消导出'
                    });
                });
            },
            handleSelectionChange(val) {
                this.exportList = val;
            },
            //导出
            appovalExByIds(){
                if(this.exportList.length >0){
                    this.ids = this.exportList.map(function(exportList,index){
                        return exportList.id;
                    }).join(",");
                    this.$confirm('确定要导出所选数据吗?', '提示', {
                        cancelButtonText: '取消',
                        confirmButtonText: '确定',
                        type: 'warning'
                    }).then(() => {
                        window.location.href="/dzjportal/apUnitInfo/exportByIds?ids="+this.ids
                    }).catch(() => {
                        this.$message({
                            type: 'info',
                            message: '取消导出'
                        });
                    });
                }else {
                    this.$message('请选择要导出的数据！');
                }
            }
        }
    })
</script>
</html>